package service

import (
	"GinShop/mapper"
	"GinShop/model"
)

type GoodService struct {
}

func NewGoodService() *GoodService {
	return &GoodService{}
}

/**
 * 获取商家的食品列表
 */
func (gs *GoodService) GetFoods(shop_id int64) []model.Goods {
	goodMapper := mapper.NewGoodMapper()

	return goodMapper.QueryFoods(shop_id)
}
